package com.fufan.mtsaas.modules.newtech.xjsyearaudit.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 年审表
 */
@Data
@TableName("xjs_year_audit")
public class XjsYearAudit {

    @TableId( value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "系统ID")
    private int id;

    @ApiModelProperty(value = "新项目、历史项目ID")
    private Long otherId;

    @ApiModelProperty(value = "数据分类 1-新项目 2历史项目")
    private Integer otherType;

    @ApiModelProperty(value = "项目编号")
    private String projectNo;

    @ApiModelProperty(value = "准入文号")
    private String approvalNumber;

    @ApiModelProperty(value = "项目名称")
    private String name;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "项目描述")
    private String description;

    @ApiModelProperty(value = "项目分类 1-非限制类，2-限制类，3-上海首家")
    private Integer projectClass;

    @ApiModelProperty(value = "技术类别 1-手术操作，2-检验检查，3-其他治疗技术")
    private Integer techType;

    @ApiModelProperty(value = "状态： 80-年审下发；90-科室主任审批；100-医疗技术临床应用管理委员会审批 110: 已完成年审")
    private Integer status;

    @ApiModelProperty(value = "审核状态：  1草稿 2处理中 3已完结 4已驳回")
    private Integer auditStatus;

    @ApiModelProperty(value = "申请部门")
    private Long applyDeptId;

    @ApiModelProperty(value = "申请部门负责人id")
    private Long applyManagerId;

    @ApiModelProperty(value = "申请部门负责人")
    private String applyManagerName;

    @ApiModelProperty(value = "申请人")
    private Long applyUserId;

    @ApiModelProperty(value = "填报人姓名/申请人姓名")
    private String applyUserName;

    @ApiModelProperty(value = "开通时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date openTime;

    @ApiModelProperty(value = "上报时间，项目创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date reportTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "启用状态 0：正常 1：禁用")
    private Integer isEnabled;

    @ApiModelProperty(value = "删除状态 0：否 1：是",hidden = true)
    private Integer delFlag;
}
